package com.cxw.healthserver.controller

import com.cxw.healthserver.entity.SignConfig
import com.cxw.healthserver.response.BaseResponse
import com.cxw.healthserver.service.SingConfigService
import org.springframework.beans.factory.annotation.Autowired
import org.springframework.web.bind.annotation.*

/**
 * @createTime 2024/6/25 22:37
 * @author 崔兴旺
 * @description
 */
@RestController
@RequestMapping("api")
class SignConfigController {

    @Autowired
    private lateinit var singConfigService: SingConfigService

    /**
     * 下载签约配置
     */
    @GetMapping("downloadSignConfig")
    fun downloadSignConfig(): BaseResponse<SignConfig> {
        return BaseResponse.success(singConfigService.querySignConfig())
    }
}